package com.equalsandhashcode1;

import java.util.HashSet;
import java.util.Set;

public class Client {
public static void main(String[] args) {
	Set set=new HashSet();
	set.add(new Customer(101, "deepak", 99999));
	set.add(new Customer(103, "ravi", 34349));
	set.add(new Customer(102, "amit", 34343));
	set.add(new Customer(101, "deepak", 99999));
	for(Object obj:set){
		System.out.println(obj);
	}
}
}
